package behavior2.mediator;

public abstract class Colleague {
	private Mediator mediator;
	
	public Mediator getMediator() {
		return mediator;
	}

	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}

	public Colleague(Mediator m){
		this.mediator = m;
	}
	
	public abstract void action();
	
	public void change(){
		this.mediator.colleagueChanged(this);
	}
}
